{ //=========Macro generated from canvas: c1/Efficiencies //========= (Sat Mar 28 21:21:15 2009) by ROOT version5.22/00 TCanvas *c1 = new TCanvas("c1", "Efficiencies",0,44,600,600); gStyle->SetOptStat(0); gStyle->SetOptTitle(0); c1->Range(-1.375,-13.75,2.375,123.75); c1->SetFillColor(0); c1->SetBorderMode(0); c1->SetBorderSize(2); c1->SetFrameBorderMode(0); c1->SetFrameBorderMode(0); TH1 *hlptgh = new TH1F("hlptgh","log(pt), pair bg tracks/ghosts",10,-1,0.2); hlptgh->SetBinContent(3,530); hlptgh->SetBinContent(4,1124); hlptgh->SetBinContent(5,748); hlptgh->SetBinContent(6,485); hlptgh->SetBinContent(7,357); hlptgh->SetBinContent(8,132); hlptgh->SetBinContent(9,4); hlptgh->SetBinContent(10,1); hlptgh->SetBinContent(11,5); hlptgh->SetBinError(3,23.02173); hlptgh->SetBinError(4,33.52611); hlptgh->SetBinError(5,27.34959); hlptgh->SetBinError(6,22.02272); hlptgh->SetBinError(7,18.89444); hlptgh->SetBinError(8,11.48913); hlptgh->SetBinError(9,2); hlptgh->SetBinError(10,1); hlptgh->SetBinError(11,2.236068); hlptgh->SetEntries(3386); hlptgh->Scale(0.01); hlptgh->SetMaximum(14); hlptgh->SetMinimum(0); hlptgh->GetXaxis()->SetTitle("log_{10}(p_{T}/GeV)"); hlptgh->GetYaxis()->SetTitle("Background Tracks/Event"); hlptgh->Draw("pe"); // entry=leg->AddEntry("effyPTPC","TPC only","p"); // entry->SetLineColor(4); // entry->SetLineStyle(1); // entry->SetLineWidth(1); // entry->SetMarkerColor(4); // entry->SetMarkerStyle(21); // entry->SetMarkerSize(1.3); TLatex * tex = new TLatex(-0.9,12.6,"a)"); tex->SetTextSize(0.06); tex->SetLineWidth(2); tex->Draw(); TLatex * tex = new TLatex(-0.45,12,"No BX matching"); tex->SetTextSize(0.055); tex->SetLineWidth(2); tex->Draw(); c1->Modified(); c1->cd(); c1->SetSelected(c1); c1->SaveAs("Ghost_Pt.eps" ); c1->SaveAs("Ghost_Pt.gif" ); }